# -*- coding: utf-8 -*-
# created on 2017/5/8

from mathsolver.functions.base import *
from mathsolver.functions.sanjiao.conditions import SanJiaoTuXiangYiDongCondition


class PingYiExtra(BaseFunction):
    def solver(self, *args):
        sinfunc, funcname, tmp, text = args[:4]
        stepsolver = SanJiaoTuXiangYiDongCondition(known=self.known).solver(sinfunc, text, tmp)
        self.steps.extend(stepsolver.steps)
        func = stepsolver.output[0]
        func.name = funcname.name
        self.output.append(func)
        return self


if __name__ == '__main__':
    pass
